import {increase,decrease} from "../actions"
import {connect} from "react-redux"
import {Counter} from "../components"

const mapStateToProps=(state)=>{//4.将仓库里state转化为props，组件间数据传递只能通过props

    return {
      count : state.product.count,
      count1: state.product.count1,
      boo   : state.login,

    }
} 



export default connect(mapStateToProps,{increase,decrease})(Counter)  //5.创建一个容器，连接转化后的props与ui组件，返回的仍是一个组件
